﻿#ifndef SNDIALOG_H
#define SNDIALOG_H

#include <QDialog>

namespace Ui {
class SNDialog;
}

bool checkSN();
bool checkSN(QString id, QString sn);

class SNDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SNDialog(QWidget *parent = nullptr);
    void setID(QString id);
    QString getSN();
    ~SNDialog();
    void accept() override;
private slots:
    void on_pushButtonCopy_clicked();

    void on_pushButton_clicked();

    void on_pushButtonReject_clicked();

private:
    Ui::SNDialog *ui;

    QString m_id;
    QString m_sn;
};

#endif // SNDIALOG_H
